const layout = () => import('layout/layout.vue')
const login = () => import('views/login/index.vue')
const dashboard = () => import('views/dashboard/index.vue')

import setting from './modules/setting'
import shop from './modules/shop'
import order from './modules/order'
import commission from './modules/commission'
import product from './modules/product'

const routes = [{
    path:'/',
    component: layout,
    name:'dashboard',
    redirect:'/login',
    meta:{
        title:'dashboard'
    },
    children:[{
        path:'dashboard',
        component:dashboard
    }]
},{
    path:'/login',
    component:login,
    name:'login',
    meta:{
        title:'login'
    }
},
setting,
shop,
order,
commission,
product]

export default routes